home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / MPW Related / MPWTool / Read Me < prev   
Encoding:
Text File  |  1991-11-21  |  2.2 KB  |  56 lines  |  [TEXT/MPS ]

  1.  
  2.                                                 PlayTool
  3.  
  4. PlayTool is an MPW tool which plays sounds. It was written so that my Macintosh
  5. could tell me when it's done compiling those big C++ programs that seem to take
  6. forever and ever and ever to finish.
  7.  
  8. PlayTool is invoked in the following format:
  9.  
  10.     PlayTool [-a] [sounds...]
  11.  
  12. The "sounds..." are a list of sound ('snd ') resource names. Any sounds in the System
  13. file will work, for example. If you simply give PlayTool a list of sounds, it will pick
  14. one at random and play it. If you include the "-a" option, it will play all the sounds
  15. you give it in turn.
  16.  
  17. If you don't give PlayTool a list of sounds, it will look inside itself and use any
  18. sound resources it finds to make up the list. It will then play one of these sounds,
  19. or all of them (-a).
  20.  
  21. You can make a new tool to announce some situation (compile complete, time for
  22. lunch, etc. etc.). Just make a copy of PlayTool with a new name, then add sound
  23. resources to it. When you invoke it in MPW, it will pick one of the sounds you've
  24. added and play it.
  25. _____________________________________________________________________
  26.  
  27.  
  28.                             BuildSucceeded/BuildFailed/BuildProgram
  29.  
  30. Included with PlayTool are two variations on it and a replacement for MPW 3.2's
  31. BuildProgram script.
  32.  
  33. BuildSucceeded & BuildFailed are two tools which say appropriate things for the
  34. situations they're named after.
  35.  
  36. BuildProgram is a slightly modified version of MPW 3.2's BuildProgram script,
  37. which determines if the build was successfull, and then executes one of the two
  38. variables {BuildSuccess} or {BuildFailure}. With this version of the BuildProgram
  39. script, you can have it do whatever you like on success or failure.
  40.  
  41. If you want to use the BuildSucceeded and BuildFailed tools to tell you when the
  42. build is done, you need to include the following lines in your UserStartup file:
  43.  
  44.     Set BuildSuccess BuildSucceeded
  45.     Export BuildSuccess
  46.     Set BuildFailure BuildFailed
  47.     Export BuildFailure
  48.  
  49. And, of course, you need to put BuildProgram in the MPW Scripts folder, replacing
  50. the original that came with MPW, and put BuildSucceeded and BuildFailed in the
  51. Tools folder.
  52. _____________________________________________________________________
  53.  
  54.  
  55.                                                                             Enjoy,
  56.                                                                             Harry Chesley